package Proxy.java.dynamicProxy.oncemore;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class FunctionHere implements InvocationHandler {

    public Object kind;

    public FunctionHere(Object kind) {
        this.kind = kind;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("卖之前，饮茶先");
        method.invoke(kind,args);
        System.out.println("卖完了，求求你给点小费");
        return null;
    }
}
